package com.lzx.adx.report.enums;

public enum WphCovertHwEnums {

    //    activate("ACTIVE","activate","激活"),
//    LAUNCH("LAUNCH","reEngage","启动"),
//    ADD_CART("ADD_CART","paid","加购"),
    NEW_ORDER("NEW_ORDER","paid","新客下单")
//    OLD_ORDER("OLD_ORDER","paid","老客下单")
    ;


    private String wphCode;

    private String hwCode;

    private String msg;

    WphCovertHwEnums(String wphCode, String hwCode, String msg) {
        this.wphCode = wphCode;
        this.hwCode = hwCode;
        this.msg = msg;
    }

    public String getWphCode() {
        return wphCode;
    }

    public void setWphCode(String wphCode) {
        this.wphCode = wphCode;
    }

    public String getHwCode() {
        return hwCode;
    }

    public void setHwCode(String hwCode) {
        this.hwCode = hwCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static String getOutCode(String wphCode){
        for (WphCovertHwEnums value : WphCovertHwEnums.values()) {
            if(value.getWphCode().equals(wphCode)){
                return value.getHwCode();
            }
        }
        return  null;
    }
}
